package com.mingqijia.gassafety.job.controller;

import com.gap.basic.base.CommonResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inner/v1/")
@Slf4j
public class HealthCheckController {

    @GetMapping("{module}/health")
    public CommonResponse<String> healthCheck(@PathVariable("module") String module){
        log.info("访问{}成功", module);
        return CommonResponse.success("访问" + module +"成功");
    }

}
